﻿<%@ Page Title="" Language="C#" MasterPageFile="~/site.Master" AutoEventWireup="true" CodeBehind="QLDonViTinh.aspx.cs" Inherits="QLHieuThuocFull.QLDonViTinh" %>
<%@ Register assembly="DevExpress.Web.v14.1, Version=14.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v14.1, Version=14.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="width: 100%;">
        <tr>
            <td>
                &nbsp;
                <dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" 
                    DataSourceID="DVTSource" KeyFieldName="MADVT">
                    <Columns>
                        <dx:GridViewCommandColumn ShowEditButton="True" VisibleIndex="0" 
                            ShowDeleteButton="True" ShowNewButtonInHeader="True">
                        </dx:GridViewCommandColumn>
                        <dx:GridViewDataTextColumn Caption="Tên đơn vị tính" FieldName="TENDVT" 
                            VisibleIndex="1">
                        </dx:GridViewDataTextColumn>
                    </Columns>
                    <SettingsPager>
                        <Summary AllPagesText="Trang: {0} - {1}" Text="Trang {0} /{1}" />
                    </SettingsPager>
                    <SettingsCommandButton>
                    <EditButton Text="Sửa">
                    </EditButton>
                    <NewButton Text="Thêm mới">
                    </NewButton>
                    <DeleteButton Text="Xóa">
                    </DeleteButton>
                    <UpdateButton Text="Cập nhật"></UpdateButton>
                    <CancelButton Text="Hủy"></CancelButton>
                    </SettingsCommandButton>
                </dx:ASPxGridView>
                &nbsp;
                &nbsp;
                <asp:LinqDataSource ID="DVTSource" runat="server" 
                    ContextTypeName="QLHieuThuocFull.QLDUOCDataContext" EnableDelete="True" 
                    EnableInsert="True" EnableUpdate="True" TableName="DVTINHs">
                </asp:LinqDataSource>
            </td>
        </tr>
        </table>
    </asp:Content>
